package com.focus.xyz.other.cases;

import com.focus.xyz.core.common.annotation.Task;
import com.focus.xyz.core.common.listeners.TC;
import com.focus.xyz.core.common.webdriver.DriverFactory;
import com.focus.xyz.core.utils.ExcelUtils;
import com.focus.xyz.core.utils.prop.ConfigPropInfo;
import com.focus.xyz.union.action.KeyWordAction;
import com.focus.xyz.union.pages.frontend.MainPage;
import com.focus.xyz.union.pages.frontend.RegisterPage;
import org.openqa.selenium.WebDriver;
import org.testng.Assert;
import org.testng.annotations.*;

import java.io.IOException;

/**
 * Created by chenmeng on 2016/3/30.
 */
public class RegisterTest extends TC {
    private WebDriver driver;
    private KeyWordAction action;
    private String baseUrl = "http://union.xyz.cn/";


    @Parameters({"browser"})
    @BeforeMethod(alwaysRun = true)
    public void setUp(String browser) throws Exception{
        driver = DriverFactory.getLocalDriver().getBrowser(browser);
        action = new KeyWordAction(driver);
        super.init(driver);
        driver.get(baseUrl);
    }

    @AfterMethod(alwaysRun = true)
    public void tearDown(){
        if(driver!=null){
            super.quit();
            driver.quit();
        }
    }



    @Test(dataProvider = "getRegistData")
    public void LOGIN_INFO_SET(String memRole,String roleType,String userName,String email,String pass,String name,String bill,String idNo) throws Exception{
        //TODO
    }

    public void LOGIN_ACCT_RECHARGE() throws Exception{

    }
}
